<template>
	<view class="header">
		<view class="card">
			<view class="text flex flex-jc-sb">
				<view>{{ returnTime(BusinessDaily.time) }}</view>
				<view class="flex flex-ai-c" @click="goPage('/pages_common/pages_index/historyDaily/historyDaily')">
					<i-icon icon="iconlishi" color="#FBB000" size="34rpx"></i-icon>
					历史
				</view>
			</view>
			<!-- 遮罩层 -->
			
			<!-- 企业/店铺信息 -->
			<view class="header-section">
				<!-- 企业/店铺信息 -->
				<view class="store-box">
					<view class="store-info flex flex-ac-c">
						<view class="info-box">
							<view class="store-name">
								<text class="text">{{ store.storeName }}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		 <!-- @click="goPage('/pages_common/pages_index/dailyDetails/dailyDetails')" -->
			<view class="flex flex-jc-sa" style="margin-top: 27rpx;">
				<view style="text-align: center;">
					<view class="price">{{BusinessDaily.today}}</view>
					<view class="profit">今日收益</view>
				</view>
				<view class="line"></view>
				<view style="text-align: center;">
					<view class="price">{{BusinessDaily.month}}</view>
					<view class="profit">本月收益</view>
				</view>
			</view>
		</view>
		<view class="card">
			<view class="flex flex-jc-sa number">
				<view>
					<view>{{BusinessDaily.numberCustomers}}</view>
					<view>总客户数</view>
				</view>
				<view>
					<view>{{BusinessDaily.newCustomers}}</view>
					<view>新增客户数</view>
				</view>
				<view>
					<view>{{BusinessDaily.oldCustomers}}</view>
					<view>老客户数</view>
				</view>
			</view>
		</view>
	
		<!-- <view class="footer">
			<view class="footer-text flex flex-jc-c flex-ai-c">确定创建</view>
		</view> -->
	</view>
</template>

<script src='./daily.js'></script>

<style lang="scss" scoped>
	@import './daily.scss';
</style>
